<include file="public/head"/>
<include file="public/scripts"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/index')}">规则列表</a></li>
        <li><a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/add')}">添加规则</a></li>
    </ul>
    <br>
    <form class="js-ajax-form" action="" method="post">
        <br>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <td>编号</td>
                <td>匹配的url</td>
                <td>状态</td>
                <td>添加时间</td>
                <td>操作</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.url}</td>
                    <td>
                        <if condition="$vo.status eq 1">
                        <a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/setstatus')}?status=0&id={$vo.id}" class="js-ajax-dialog-btn" data-msg="确定禁用吗？">启用</a>
                        <else />
                        <a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/setstatus')}?status=1&id={$vo.id}" class="js-ajax-dialog-btn" data-msg="确定启用吗？">禁用</a>
                        </if>
                    </td>
                    <td>{$vo.addtime|date='Y-m-d H:i:s',###}</td>
                    <td>
                        <a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/edit')}?id={$vo.id}">编辑</a>
                        <a href="{:cmf_plugin_url('QbtPageContentFilter://AdminIndex/del')}?id={$vo.id}">删除</a>
                    </td>
                </tr>
            </foreach>

        </table>

        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
</body>
</html>
